<?php
/**
 * 支付宝配置，主要针对EasyWeChat
  * @author lisong<377344020@qq.com>
  * @date 2020/06/19
 */
return [
    /**
     * 账号基本信息，请从微信公众平台/开放平台获取
     */
    'app_id'  => '2021004104645124',         // AppID
    'secret'  => 'your-app-secret',     // AppSecret
    'token'   => 'your-token',          // Token
    'aes_key' => 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlR7bckW75tkiazmMDRBU9bg6HpWe1cOnswjdtqeAt7zrw0Qx6oKwXWHSoDf8lB/0clmbPyy9GTgHrK/Ulblbt0lY0/0PgSHTx6TuEk+KKMCFVRC46rHeUjelrrJLqkHbBYX8wRWXkNoD4x8NU3oIn+oC1UKdtJg1AM6otGNuxlFHabsmO32YVLEVhEyU+/2Xm+DUQ+0Bl3yL6XJScFIYWRCt/Pim4CRsWPkhyx4hXZHPKjWCMX2P6kbCe9cmE0RM32lg2wdX2UGMJh2sHXALpffpoFLUriWIlfZz0hIQMwZULUrvMT7qtjsVCxbRAFCF/syL2A8TKDg2QWF5nnQp6QIDAQAB',    //公钥
    'key'                => 'MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCVHttyRbvm2SJrOYwNEFT1uDoelZ7Vw6ezCN22p4C3vOvDRDHqgrBdYdKgN/yUH/RyWZs/LL0ZOAesr9SVuVu3SVjT/Q+BIdPHpO4ST4oowIVVELjqsd5SN6WuskuqQdsFhfzBFZeQ2gPjHw1Tegif6gLVQp20mDUAzqi0Y27GUUdpuyY7fZhUsRWETJT7/Zeb4NRD7QGXfIvpclJwUhhZEK38+KbgJGxY+SHLHiFdkc8qNYIxfY/qRsJ71yYTREzfaWDbB1fZQYwmHawdcAul9+mgUtSuJYiV9nPSEhAzBlQtSu8xPuq2OxULFtEAUIX+zIvYDxMoODZBYXmedCnpAgMBAAECggEAQ+7qygQ6tc/1fiOZSdpG2iozT/uZgIjBvS4s0yk72niWbz6B/vPKpMAL1DGtP03PbsijkQQwoWyFE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v8A4OKXDlJKp83NiaMhnjYQDZ6zai/jAkx+LGublC1MpUNNtKassdPU=',   // API 私钥密钥
    'setAppCertPath'          => '/alipay_crt/appCertPublicKey_2021003163643310.crt', // 应用公钥证书: 绝对路径！！！！
    'setAlipayPublicCertPath'           => '/alipay_crt/alipayCertPublicKey_RSA2.crt',      // 支付宝公钥证书: 绝对路径！！！！
    'setRootCertPath'           => '/alipay_crt/alipayRootCert.crt',      // 支付宝根证书: 绝对路径！！！！


    'notify_url'         => 'https://hzjujia-fdgj-api.fangdanguanjia.com/p-zfbnotify',     // 你也可以在下单时单独设置来想覆盖它
    /**
     * 指定 API 调用返回结果的类型：array(default)/collection/object/raw/自定义类名
     * 使用自定义类名时，构造函数将会接收一个 `EasyWeChat\Kernel\Http\Response` 实例
     */
    'response_type' => 'array',
    /**
     * 日志配置
     *
     * level: 日志级别, 可选为：
     *         debug/info/notice/warning/error/critical/alert/emergency
     * path：日志文件位置(绝对路径!!!)，要求可写权限
     */
    'log' => [
        'default' => 'dev', // 默认使用的 channel，生产环境可以改为下面的 prod
        'channels' => [
            // 测试环境
            'dev' => [
                'driver' => 'single',
                'path' => '/tmp/easywechat.log',
                'level' => 'debug',
            ],
            // 生产环境
            'prod' => [
                'driver' => 'daily',
                'path' => '/tmp/easywechat.log',
                'level' => 'info',
            ],
        ],
    ],

    /**
     * 接口请求相关配置，超时时间等，具体可用参数请参考：
     * http://docs.guzzlephp.org/en/stable/request-config.html
     *
     * - retries: 重试次数，默认 1，指定当 http 请求失败时重试的次数。
     * - retry_delay: 重试延迟间隔（单位：ms），默认 500
     * - log_template: 指定 HTTP 日志模板，请参考：https://github.com/guzzle/guzzle/blob/master/src/MessageFormatter.php
     */
    'http' => [
        'max_retries' => 1,
        'retry_delay' => 500,
        'timeout' => 5.0,
        // 'base_uri' => 'https://api.weixin.qq.com/', // 如果你在国外想要覆盖默认的 url 的时候才使用，根据不同的模块配置不同的 uri
    ],

    /**
     * OAuth 配置
     *
     * scopes：公众平台（snsapi_userinfo / snsapi_base），开放平台：snsapi_login
     * callback：OAuth授权完成后的回调页地址
     */
    'oauth' => [
        'scopes'   => ['snsapi_userinfo'],
        'callback' => '/index/auth/wechat_callback.php',
    ],
];